import lireg from '@/api/axios';

export default {
  /**
   * @description: 所有栏栋舍相关接口
   */
  add(params) {
    return lireg.post("/breedFacility/facility/add", params)
  },

  // 编号删除
  numberDel(params) {
    return lireg.get(`/breedFacility/facility/delByNo?no=${params}`)
  },

  // 编号批量删除
  numberBatchDel(params) {
    return lireg.post("/breedFacility/facility/delListByNo", params)
  },

  // 修改
  edit(params) {
    return lireg.post("/breedFacility/facility/edit", params)
  },

  // 条件查询
  conditionQuery(params) {
    return lireg.post("/breedFacility/facility/queryByCondition", params)
  },
  // 条件查询
  treeQuery(params) {
    return lireg.post("/breedFacility/facility/queryTree", params)
  },
  // 编号查询
  numberQuery(params) {
    return lireg.get(`/breedFacility/facility/queryByNo?no=${params}`)
  },
  // 编号批量查询
  numberBatchQuery(params) {
    return lireg.post("/breedFacility/facility/queryListByNo", params)
  },
  // 编号批量查询
  queryDetailByNoList(params) {
    return lireg.post("/breedFacility/facility/queryDetailByNoList", params)
  },
  // 分页查询
  pageQuery(params) {
    return lireg.post("/breedFacility/facility/queryPageByCondition", params)
  },
  queryAllFacilityDetail(params) {
    return lireg.get("/breedFacility/facility/queryAllFacilityDetail", params)
  },
  queryonInfoByCondition() {
    return lireg.get(`organization/organizationInfo/queryByOrganizationNo?no=${sessionStorage.organizationNo}`)
  },
  //组织信息查询
  queryonByCondition() {
    return lireg.get(`organization/organization/queryByOrganizationNo?no=${sessionStorage.organizationNo}`)
  }
}
